package com.gitee.liang521.generate.api.pojo.vo.generate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author liang zai
 * @date 2021/9/16 16:18
 * @description
 */
@Data
@ApiModel("com.gitee.liang521.generate.api.pojo.vo.generate.GenerateReqVo")
public class GenerateReqVo implements Serializable {
    private static final long serialVersionUID = -1460735458852171951L;

    @NotEmpty(message = "请选择要生成代码的表")
    @ApiModelProperty(value = "表名", example = "user")
    private List<String> tableNames;

    @NotEmpty(message = "请选择要生成的文件类型")
    @ApiModelProperty(value = "文件类型", example = "dao, service")
    private List<String> types;

    @ApiModelProperty(value = "模块名", example = "ship")
    private String module;
}
